import { createApp } from "vue";
import App from "./App.vue";
import 'element-plus/dist/index.css'
import store from "./store/store";
import router from "./router/router";
import ElementPlus from 'element-plus'
import 'nprogress/nprogress.css'
import * as Icons from '@element-plus/icons-vue'
import { createPinia } from "pinia";
const pinia = createPinia();
const app= createApp(App);
app.use(ElementPlus);
app.use(router);
app.use(store);
app.use(pinia);
app.mount("#root");
Object.keys(Icons).forEach(key => {
    app.component(key, Icons[key as keyof typeof Icons])
  });